#ifndef __QpwGeometryEdit__
#define __QpwGeometryEdit__

#include <QtGui/QMainWindow>
#include <QpwGeometry.h>
#include "ui_QpwGeometryEditWindow.h"

namespace QyGL { class ViewWidget; };
class QpwGeometryScene;

class QpwGeometryEdit : public QObject {
    Q_OBJECT
public:
    explicit QpwGeometryEdit( QyGL::ViewWidget * viewWidget = 0 );
    virtual ~QpwGeometryEdit();

    QpwWorld::Geometry geometry() const;

    void setGeometry( const QpwWorld::Geometry & geometry );
    void clear();

private:
    QAction * mode;
    QyGL::ViewWidget * p_viewWidget;
    QpwGeometryScene * p_geometryScene;
};

#endif//__QpwGeometryEdit__
